import getInputDescrible from '../../utils/input-field-desc';

export default {
    attributes: [
        {
            params: 'v-model',
            des: '绑定值',
            type: 'Array',
            values: '-',
            defaultVal: '',
        },
        {
            params: 'props',
            des: '表单元素配置; 详细配置请查看下方【props 配置项】',
            type: 'Object',
            values: '-',
            defaultVal: '-',
            details: [
                {
                    title: '配置项【props】',
                    configList: getInputDescrible('inputrange'),
                },
            ],
        },
    ],
    events: [
        {
            name: 'change',
            des: '输入框失焦后值内容修改触发的事件',
            params: '({ value }, props)',
        },
        {
            name: 'input',
            des: '输入框值内容修改触发的事件',
            params: '(value, props)',
        },
        {
            name: 'focus',
            des: '输入框聚焦事件',
            params: '(value, props, event)',
        },
        {
            name: 'blur',
            des: '输入框失焦事件',
            params: '(value, props, event)',
        },
        {
            name: 'clear',
            des: '点击清空图标，清空输入框的值后抛出的事件',
            params: '(value, props)',
        },
        {
            name: 'enter',
            des: '在输入框聚焦的情况下，按回车键触发的事件',
            params: '(value, props, event)',
        },
    ],
    slots: [],
    refs: [],
};
